<?php
class MessageResource
{
	// Article
	const ARTICLE_DELETE_FAILED = 'Error! Cannot delete article ';
	const ARTICLE_UPDATE_FAILED = 'Error! This article was not updated successfully';
	const ARTICLE_UPDATE_STATUS_FAILED = 'Error! Cannot update article ';
	const ARTICLE_UPDATE_SUCCESSFUL = 'This article was updated successfully';
    const ARTICLE_CREATE_SUCCESSFUL = 'This article was created successfully';
	const ARTICLE_NOT_FOUND = 'Sorry! The article with given Id is not found';
	const ARTICLE_NO_SELECTED_ITEM = 'Please select at least 1 article!';
	const ARTICLE_EMPTY = 'There is no article found';
    const ARTICLE_TITLE_BLANK = 'Title cannot be blank';
    const ARTICLE_ALIAS_BLANK = 'Alias cannot be blank';
    const ARTICLE_CATEGORY_BLANK = 'Please choose a category';
    const ARTICLE_CONTENT_BLANK = 'Content cannot be blank';
    const ARTICLE_VOTE_ALREADY = 'Sorry, you already voted for this article.';
    const ARTICLE_VOTE_POSITIVE = 'This article is voted as positive.';
    const ARTICLE_VOTE_NEGATIVE = 'This article is voted as negative.';
    const ARTICLE_VOTE_FAILED = 'Sorry but some errors encountered. Please try to vote again.';
    const ARTICLE_VOTE_THANK = 'Thank you for voting!';

    // Category
    const CATEGORY_DELETE_FAILED = 'Error! Cannot delete category. Please try again!';
    const CATEGORY_DELETE_SUCCESSFUL = 'Category has been deleted';
    const CATEGORY_UPDATE_FAILED = 'Error! This category was not updated successfully';
    const CATEGORY_CONFIRM_DELETE = 'Are you sure to delete this category ?';
    const CATEGORY_UPDATE_STATUS_FAILED = 'Error! Cannot update category ';
    const CATEGORY_UPDATE_SUCCESSFUL = 'Category is updated successfully.';
    const CATEGORY_CREATE_SUCCESSFUL = 'Category is created successfully.';
    const CATEGORY_NOT_FOUND = 'This category is not found';
    const CATEGORY_TITLE_BLANK = 'Title cannot be blank';
    const CATEGORY_ALIAS_BLANK = 'Alias cannot be blank';
    const CATEGORY_DESCRIPTION_BLANK = 'Description cannot be blank';
    const CATEGORY_CHOOSE_ONE_CATEGORY = 'Please choose only one category!';
    const CATEGORY_NO_SELECTED_ITEM = 'Please select at least 1 category!';
    const CATEGORY_ID_INVALID = 'Could not found category with given Id.';
    const CATEGORY_IS_PARENTS = 'Category has some child categories.';
    const CATEGORY_HAS_ARTICLE = 'Category has some articles.';
    const NO_PARENT_CATEGORY = 'No parent category';
    const ALL_CATEGORIES = 'All categories';
    const CHOOSE_CATEGORY = 'Choose category';

	//User
	const USER_CREATE_SUCCESSFUL = 'User is created successfully.';
	const USER_UPDATE_SUCCESSFUL = 'User is updated successfully.';
	const USER_USERNAME_EXISTED = 'This Username already exists.';
	const USER_EMAIL_EXISTED = 'This E-mail already exists.';
	const USER_USERNAME_BLANK = 'UserName cannot be blank.';
	const USER_PASSWORD_BLANK = 'Password cannot be blank.';
	const USER_PASSWORD_LENGTH = 'Password must be 5-32 characters.';
	const USER_PASSWORD_NOT_MATCH = 'Passwords do not match.';
	const USER_FIRSTNAME_BLANK = 'First Name cannot be blank.';
	const USER_LASTNAME_BLANK = 'Last Name cannot be blank.';
	const USER_EMAIL_BLANK = 'E-mail cannot be blank.';
	const USER_EMAIL_RIGHT_FORMAT = 'E-mail must be in right format.';
	const USER_NOT_FOUND = 'This user is not found.';
    const USER_ID_INVALID = 'Could not found user with given Id.';
    const USER_IS_AUTHOR = 'User is the author of some articles.';
    const USER_IS_THE_ONLY_ONE = 'There is only one user in the system.';
    const USER_EMPTY = 'There is no user found';

    //Action
    const BULK_ACTION = 'Bulk Action';
    const DELETE_ACTION = 'Delete';
    const BULK_ACTION_MESSAGE = 'Please choose an action !';

	//email to friend
	const SEND_REGISTER_EMAIL_SUCCESSFUL = 'E-mail was sent successfully';
	const SEND_REGISTER_EMAIL_FAILED = 'E-mail was not sent successfully';
    const REGISTER_EMAIL_SUBJECT = 'Confirm to be a FlexicaCMS members';

    // Advance Search
    const SEARCH_REQUIRED = 'Please at least input a keyword or choose category.';
    const DATE_COMPARE = 'Please input \"Update before\" less or equal \"Update after\".';
    const DATE_REQUIRED = 'Please input \"Update before\" and \"Update after\".';

    // Tools
    const TOOLS_NO_THEME = 'There is no theme found in the system';
    const TOOLS_NO_AVAILABLE_THEME = 'No theme';

    // Action
    const BO_CREATE = 'create';
    const BO_EDIT = 'edit';
    const CHANGE_STATUS_ACTIVE = 'Activate';
    const CHANGE_STATUS_INACTIVE = 'Deactivate';

	// Keyword
	const KEYWORD_EMPTY = 'There is no keyword found';

	// Meaning of *
	const REQUIRED_SYMBOL_MEANING = 'Required fields (cannot be blank)';
    
    // Sort
    const SORT = 'sort';
    
    // Page
    const PAGE_CREATE_SUCCESSFUL = 'Page is created successfully';
    const PAGE_UPDATE_SUCCESSFUL = 'Page is updated successfully';
    const PAGE_ID_INVALID = 'Page id is invalid';
    const PAGE_UPDATE_STATUS_FAIL = 'Error! Cannot update page status.';
    const PAGE_STATUS_INVALID = 'Error! Page status is invalid';
}
?>
